﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;



class Patterns
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            
            int[,] matrix = new int[N, N];
            int diagonalSum = 0;
            int diagonalRow = 0;
            int diagonaCol = 0;

            for (int i = 0; i < N; i++)
            {
                string[] numbersPerRow = Console.ReadLine().Split(' ');
                for (int j = 0; j < N; j++)
                {
                    matrix[i, j] = int.Parse(numbersPerRow[j]);
                }
                diagonalSum += matrix[diagonalRow, diagonaCol];
                diagonalRow++;
                diagonaCol++;
            }


            

            for (int row = 0; row < N ; row++)
            {

                for (int col = 0; col < N; col++)
                {
                    
                   

                    
                    
                }
                   
                Console.WriteLine();
            }


        }
    }

